package com.jurenzhao.partssystem.information.basic_series.service;

import com.jurenzhao.partssystem.information.basic_series.dao.BasicSeriesMapper;
import com.jurenzhao.partssystem.information.basic_series.entity.BasicSeries;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class BasicSeriesService {
    @Resource
    private BasicSeriesMapper basicSeriesMapper;
    //查询所有的车系
    public List<BasicSeries> findAll(){
        return basicSeriesMapper.findAllBasicSeries();
    }
    public int save(BasicSeries basicSeries){
        return basicSeriesMapper.insertSelective(basicSeries);
    }
    public List<BasicSeries> findSeriesLike(String str){
        return basicSeriesMapper.findSeriesLike(str);
    }
}
